package com.forur.stubootstarter4.controller;

import com.forur.stubootstarter4.service.UserOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserOrderController {

    @Autowired
    private UserOrderService userOrderService;

    @RequestMapping("/userOrderAdd")
    public void add(String yearmonth) {
        userOrderService.add(yearmonth);
    }

    @RequestMapping("/yearmonth")
    public void find(String yearmonth) {
        userOrderService.find(yearmonth);
    }
}
